package com.simulation.web.domain;

import lombok.Data;

@Data
public class TechTag {
	/** 标签ID，主键，自增 */
	private Long id;
	/** 标签名，唯一 */
	private String name;
	@Override
    public boolean equals(Object o) {
        if (this == o) { return true; }
        if (o == null || getClass() != o.getClass()) {return false;}
        TechTag that = (TechTag) o;
        return id.equals(that.id);
    }

    @Override
    public int hashCode() {
        return java.util.Objects.hash(id);
    }
    
    @Override
    public String toString() {
        return "TechTag{" +
				"id=" + id +
						",name='" + name + "'" + 
		                '}';
    }
	
}